<?php
global  $db,$ngenre,$nfpre;
$ngenre = 'specialoffer';
$ndatabase = $ngenre;
$nfpre = 'a_';

$db->sqlcmd="select * from $ndatabase order by " . ii_cfname ( 'time' ) . " desc limit 5";
$topSpecialofferList=$db->execute_reader();

?>

<div class=" mo-blo mo-blo-blue ">
<div class="hd">
<h2 class="tit">最新优惠</h2>
<a class="more" href="<?=ii_get_actual_route($ngenre)?>">更多&gt;</a><s></s></div>
<div class="bd ">
<ul class="ul-2c ul-2c-blue clearfix">
 
	<?php foreach ($topSpecialofferList as $row){ ?>
	<li><a href="<?=ii_get_actual_route($ngenre.'/'.ii_iurl('detail', $row  [0]))?>"><?=ii_left($row[ii_cfname ( 'topic' )], 12)?> </a><span><?=date('m-d', strtotime($row[ii_cfname ( 'time' )]))?></span></li>
	<?php }?>
</ul>
</div>
</div>